package com.zh.authresource.controller;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.UUID;

@Data
public class Book implements Serializable {
    private String id;
    private String title;
    private String content;

    public Book(){
    }

    public Book(String title, String content){
        this.id = UUID.randomUUID().toString().substring(24);
        this.title = title;
        this.content = content;
    }
}
